package com.dx.mes.common.dao.impl;

import com.dx.common.table.ppt.Ret_tool_pt;
import com.dx.common.table.ppt.Ret_tool_ptId;
import com.dx.mes.common.core.dao.impl.GenericHibernateDao;
import com.dx.mes.common.dao.IRetToolPtDao;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class RetToolPtHibernateDao extends GenericHibernateDao<Ret_tool_pt, Ret_tool_ptId> implements IRetToolPtDao {
	public List<Ret_tool_pt> getPortInfoByTool(String toolID) {
		String strHql = "from Ret_tool_pt where id.tool_id_fk = ? ";
		List<Ret_tool_pt> ret_tool_ptList = this.find(strHql, new String[]{toolID});
		return ret_tool_ptList;
	}
}
